﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4.Shoppgin.Admin.Domain
{
    /// <summary>
    /// 订单明细表（存放订单的商品信息）
    /// </summary>
    [Table("tb_order_detail")]
    public class OrderDetailEntity : AuditField
    {
        public Guid Id { get; set; }

        public string OrderNo { get; set; }  //和订单主表用订单编号关联

        public Guid SKUId { get; set; }
        public string? SKUName { get; set; }
        public string SKUPrice { get; set; }
        public string SKUNumber { get; set; }
        public string? SKUImage { get; set; }

        /*
         * 商品状态
         * 你已经买的商品：可以对它进行退换货处理
         * **/
        public string? State { get; set; } = "0";//0是正常，-1退，-2换
    }
}
